package com.cloud.hello.impl.service.impl;

import com.cloud.hello.impl.service.HelloService;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Service;

/**
 * @Author: :lwj
 * @Time: 2018-10-21 18:42
 * @Feature:
 */
@Service
@RefreshScope
public class HelloServiceImpl implements HelloService {
    @Value("${swagger.enable}")
    private Boolean enable;
    @Override
    public String hello1() {
        return ""+enable;
    }

    @Override
    public String testHystrixCommand() {
        System.out.println(1/0);
        return "success";
    }
}
